// TrojClientDlg.h : header file
//

#ifndef _TROJCLIENTDLG_H
#define _TROJCLIENTDLG_H

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CMyDlg dialog

class CMyDlg : public CDialog
{
// Construction
public:
	static void SetPubDir(CString path);
	static void SendCommand(int ID);
	void DownloadProc(BYTE*DATE);
	void DelDirProc(BYTE *DATE);
	void DelFileProc(BYTE *DATE);
	void GetDirProc(BYTE * DATE);
	void GetDriverProc(BYTE * DATE);
	CMyDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CMyDlg)
	enum { IDD = IDD_MY_DIALOG };
	CTreeCtrl	m_tree;
	CListCtrl	m_list;
	CMenu		m_menu;

	CString	m_addr;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;
    HTREEITEM m_hRoot;
	CImageList m_ImageList;
	CImageList m_ImageList_tree;

	// Generated message map functions
	//{{AFX_MSG(CMyDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnSelchangedTree(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
	afx_msg void OnMenuExit();
	afx_msg void OnMenuDelFile();
	afx_msg void OnMenuDelDir();
	afx_msg void OnMenuGetFile();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

public:
	afx_msg void OnServerConnect();
	afx_msg void OnServerExit();
	int Connect(void);
	afx_msg void OnFileFrozecursor();
	afx_msg void OnFileScreen();
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif
